﻿using System;
using System.ComponentModel.DataAnnotations.Schema;
using DapperExtensions.Mapper;
namespace LS.Entitys
{
    /// <summary>
    /// 角色管理
    /// </summary>
    [Table("sys_role")]
    public class SysRoleEntity:EntityBaseDateDel
    {
       
        /// <summary>
        /// 角色代码
        /// </summary>
        public string RoleCode { get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        public string RoleName { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int? RoleSeq { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 是否启用 1=是 0=否
        /// </summary>
        public bool? Isenable { get; set; }

        /// <summary>
        /// 功能代码
        /// </summary>
        public string FunCode { get; set; }

        /// <summary>
        /// 菜单代码
        /// </summary>
        public string MenuCode { get; set; }

    }
    public class SysRoleEntityMapper : ClassMapper<SysRoleEntity>
    {
        public SysRoleEntityMapper()
        {
            Table("sys_role");
            Map(m => m.FunCode).Ignore();
            Map(m => m.MenuCode).Ignore();
            AutoMap();
        }
    }
}
